
/*!
 * 
 * dialog javascript
 * 
 */
$(function() {
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
		
		$( "#dialog-form" ).dialog({
			autoOpen: false,
			height: 350,
			width: 440,
			modal: true,
			buttons: {
				"是的": function() {
					$( this ).dialog( "close" );
					alert("设置成功！");
					$("#myForm").submit();
					return false;
				},
				"算了": function() {
					$( this ).dialog( "close" );
					return false;
				}
				
			},
			close: function() {
				$("#PWD").remove();
				$("#newPasswd").attr("disabled","disabled");
				$("#newPasswd").addClass("disabled_input");
				$("#newPasswd").val("");
			}
		});

		$( "#dialog" ).click(function() {
			$( "#dialog-form" ).dialog( "open" );
		});
});